/**
 * Created by Administrator on 2017/5/25.
 */
/*
var v1=document.querySelector('#v1');
var v2=document.querySelector('#v2');
var btn=document.querySelector('#btn');
var res=document.querySelector('#res');
/!*require('../statics/css/stic.css');
require('../statics/css/stic1.scss');
require('../statics/stic2.less');
require('../mui/css/icons-extra.css');matchMedia()*!/
    import  '../statics/css/stic.css';
    import '../statics/css/stic1.scss';
    import '../statics/stic2.less';

    import addObj from './calc.js';
btn.onclick=function () {
    var V1=parseFloat(v1.value);
    var V2=parseFloat(v2.value);
    //var add=require('./calc.js');

    res.value=addObj.add(V1,V2);
}*/

//导入核心包
import Vue from 'vue';
//导入要解析编译的的内容
import App from './App.vue';

//集成vue-router
import vueRouter from 'vue-router';
//将vurRouter对象绑定到Vue对象上
Vue.use(vueRouter);
//定义路由规则
import login from './account/login.vue'
import register from './account/register.vue'
var router1=new vueRouter({
    routes:[
        {path:'/login',component:login},
        {path:'/register',component:register},
    ]
})


//集成mint-ui组件
import Mint from 'mint-ui';
//导入mint-ui的css文件
import 'mint-ui/lib/style.min.css'
Vue.use(Mint);


//定义mui的css样式
import '../mui/css/mui.css';
//将App中的内容编译出来替换test页面
new Vue({
    el: '#app',
    router:router1,
   /* render:function(create){
    create(App);    ES5的写法
        },*/
    render:c=>c(App),
})
